<%@ page language="java" contentType="text/html; charset=utf8"
	pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@include file="/resources/css/title.jsp"%>
<head>
    <script src="/gsp_banking-0.5/resources/js/numbersOnly.js" type="text/javascript"></script>
</head>

<body onload="CheckForReload()">

<div class="wrapper">

<%@include file="/resources/css/header.jsp"%>

<%@include file="/resources/css/menu.jsp"%>


<center>
<table class="data_title">

<tr class="data_title"><td>
    <h3><spring:message code="label.payment" /></h3>
</td></tr>

<tr><td class="data_table">
    <form:form method="post" action="submit_payment" commandName="payment">

        <table class="input_form">
            <tr>
                <td colspan="2" align="right">
                    <span class="input"><form:select path="accountId" items="${accounts}" itemLabel="fullName" itemValue="id"/></span>
                </td>
            </tr>
            <tr>
                <td class="input_txt">
                    <form:label path="paymentId"><spring:message code="label.payment.number" /></form:label>
                </td>
                <td  class="input_inp">
                    <form:input path="paymentId" />
                </td>
            </tr>
            <tr>
                <td class="input_txt">
                    <form:label path="amount"><spring:message code="label.money_transfers.amount" /></form:label>
                </td>
                <td  class="input_inp">
                    <form:input path="amount" size="8" maxlength="8" onkeypress="return numbersonly(this, event)"/>
                    <span class="input"><form:select path="currency" items="${currencies}" itemLabel="id" itemValue="id"/></span>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" value="<spring:message code="label.payment.submit"/>" />
                </td>
            </tr>
        </table>
    </form:form>
</td></tr>


</table>
</center>

<div class="push"></div>
</div>

<%@include file="/resources/css/footer.jsp"%>
</body>
</html>